package com.tl.khadmin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.tl.khadmin.bean.FreightRegion;
import com.tl.khadmin.bean.dto.CityInfoDto;
import com.tl.khadmin.bean.dto.DistrictListDto;
import com.tl.khadmin.bean.dto.ProvinceDto;

public interface FreightRegionMapper {
    int insert(FreightRegion record);

    int insertSelective(FreightRegion record);

	List<FreightRegion> findFreightRegionByFreightId(@Param("freightId") Integer freightId);

	List<ProvinceDto> listProvinceDto();

	List<Integer> findCityByFreightId(@Param("freightId") Integer id);

	CityInfoDto findCityDtoByCityId(@Param("cid") Integer cid);

	void deleteByRegionId(@Param("freightId") Integer freightId);

	List<Integer> findDistrictByFreightId(@Param("freightId") Integer parseInt);

	DistrictListDto findDistrictById( @Param("districtId") Integer districtId);
	int countDistrictByPid(@Param("pId") Integer pId);
}